﻿@font-face {
    font-family: 'Bookman Old Style';
    src: local('Bookman Old Style'), local('Bookman Old Style');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0%;
    font-family: 'Calibri', blod;
    max-width: 100vw;
}

main {
    height: auto;
    width: 100%;
    max-width: 100vw;
}

/* Header */
.header-default {
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
    z-index: 10;
}

.header-logo-font {
    font-family: 'Bookman Old Style';
    font-size: 28px;
    padding-left: 0px;
    margin-bottom: 0px;
    margin-top: auto;
    color: aliceblue;
}

.header-logo {
    width: auto;
    height: 100%;
}

.mr-2 {
    margin: 10px;
}

.header-menu {
    display: flex;
    position: absolute;
    gap: 15px;
    margin-left: auto;
    margin-right: auto;
    left: 50%;
    transform: translateX(-50%);
}

    .header-menu:hover {
        transition: 0.8s;
        color: rgb(206, 155, 254);
    }

.header-login {
    height: 100%;
    width: auto;
    margin-left: auto;
    margin-right: 2px;
}

.header-login-img {
    width: 40px;
    height: auto;
}

.link-white {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}
.link-white:hover{
    color:mediumpurple;
}
/* Main */
.trow-text {
    text-align: center;
    margin-top: 150px;
}

.video-container {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    overflow: hidden;
    z-index: -1;
    margin-top: -50px;
}

    .video-container video {
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
    }

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.content {
    position: absolute;
    font-family: 'Candara Light';
    font-size: 48px;
    z-index: 1;
    color: white;
    text-align: center;
}

.tematik-text {
    text-align: center;
    height: 100%;
    width: 100;
    margin-left: 20%;
    margin-right: 20%;
}

.text-block {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.5;
}

.top-cards {
    margin-top: 20px;
    margin-left: 50px;
    margin-right: 50px;
    display: flex;
    justify-content: center;
}

.top-card {
    background-color: rgb(228, 228, 228);
    border-radius: 10px;
    height: 400px;
    width: 240px;
    margin: 10px;
    align-items: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

    .top-card img {
        height: 240px;
        width: 240px;
    }

    .top-card h5 {
        font-family: 'Courier New', Courier, monospace;
        margin-top: 2px;
        margin-bottom: 2px;
        margin-left: 0px;
        margin-right: 0px;
        font-size: 22px;
        text-align: center;
        max-height: 60px;
    }

    .top-card p {
        margin-top: auto;
        text-align: center;
    }

    .top-card a {
        background-color: black;
        height: 30px;
        color: aliceblue;
        border-radius: 5px;
        text-align: center;
        display: flex;
        justify-content: center;
        text-decoration: none;
        margin: 10px;
        font-size: 24px;
        font-family: 'Candara Light';
        margin-top: 1px;
    }

.link-slider {
    position: relative;
    overflow: hidden;
    background: black;
    color: white;
    padding: 1px 20px;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s;
    z-index: 1;
}

    .link-slider::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, #8400ff, #000000);
        transform: skewX(-45deg);
        transform-origin: left;
        transition: left 0.5s ease;
        z-index: -1;
    }

    .link-slider:hover {
        color: white;
    }

        .link-slider:hover::before {
            left: 100%;
        }

/* Footer */
.footer-logo {
    display: flex;
    align-items: center;
}

    .footer-logo h4 {
        font-size: 42px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        margin: 5px;
    }

    .footer-logo img {
        height: 56px;
        width: auto;
    }

.footer-QR {
    display: flex;
    width: 300px;
    height: auto;
}

    .footer-QR img {
        margin-top: 20px;
        height: 150px;
        width: auto;
    }

    .footer-QR div {
        display: flex;
        flex-direction: column;
        color: grey;
    }

footer {
    margin-top: 60px;
    margin-bottom: 0px;
    background-color: black;
    color: aliceblue;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
}

    footer section {
        margin-left: 50px;
    }

    footer nav {
        display: flex;
        flex-direction: column;
    }

    footer a {
        margin-top: 20px;
        text-decoration: none;
        color: aliceblue;
    }

        footer a:hover {
            text-decoration: underline;
        }

/* Стили для каталога */
.catalog-container {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.catalog-title {
    font-family: 'Bookman Old Style';
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: #2c2c2c;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Карточка товара в стиле сайта */
.catalog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .catalog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

/* Контейнер для изображения с фиксированным соотношением */
.catalog-image-frame {
    width: 100%;
    position: relative;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

    .catalog-image-frame::before {
        content: "";
        display: block;
        padding-top: 100%;
    }

.catalog-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.catalog-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Информация о товаре */
.catalog-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.catalog-name {
    font-family: 'Courier New', Courier, monospace;
    font-size: 22px;
    margin: 0 0 10px 0;
    text-align: center;
    color: #2c2c2c;
    line-height: 1.3;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Дополнительные данные */
.catalog-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.catalog-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #eee;
}

.catalog-detail-label {
    font-weight: bold;
    color: #444;
}

.catalog-detail-value {
    color: #333;
}

.catalog-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 10px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 63px;
}

/* Цена и кнопка */
.catalog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.catalog-price {
    font-size: 24px;
    font-weight: bold;
    color: #2c2c2c;
}

.catalog-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.catalog-status-instock {
    background: #e8f5e9;
    color: #2e7d32;
}

.catalog-status-out {
    background: #ffebee;
    color: #c62828;
}

.catalog-btn {
    background-color: black;
    height: 30px;
    color: aliceblue;
    border-radius: 5px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 20px;
    font-size: 18px;
    font-family: 'Candara Light';
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .catalog-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, #8400ff, #000000);
        transform: skewX(-45deg);
        transform-origin: left;
        transition: left 0.5s ease;
        z-index: -1;
    }

    .catalog-btn:hover {
        color: white;
    }

        .catalog-btn:hover::before {
            left: 100%;
        }

/* Основные стили детальной страницы товара */
.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Хлебные крошки */
.breadcrumb {
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

    .breadcrumb a {
        color: #667eea;
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

    .breadcrumb span {
        color: #666;
    }

/* Основной контейнер товара */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

/* Левая колонка - изображение */
.product-image-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.product-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.quick-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

    .quick-info h3 {
        margin-top: 0;
        color: #333;
        font-size: 18px;
    }

/* Правая колонка - информация */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.product-title {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 28px;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.product-article {
    background: #e3f2fd;
    color: #1565c0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.product-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

    .product-status.published {
        background: #d4edda;
        color: #155724;
    }

    .product-status.draft {
        background: #fff3cd;
        color: #856404;
    }

/* Секции с информацией */
.detail-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

    .detail-section h3 {
        margin-top: 0;
        margin-bottom: 20px;
        color: #2c3e50;
        font-size: 20px;
        border-bottom: 2px solid #f8f9fa;
        padding-bottom: 10px;
    }

/* Основная информация сеткой */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.detail-label {
    font-weight: 600;
    color: #555;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

.text-success {
    color: #28a745;
}

.text-warning {
    color: #ffc107;
}

.text-muted {
    color: #6c757d;
}

/* Объемы сеткой */
.volumes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.volume-edit-card {
    background-color:mistyrose;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}
.volume-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

    .volume-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-color: #667eea;
    }

.volume-size {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.volume-price {
    font-size: 22px;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 10px;
}

.volume-stock {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 15px;
    display: inline-block;
    font-weight: 500;
}

    .volume-stock.in-stock {
        background: #d4edda;
        color: #155724;
    }

    .volume-stock.out-of-stock {
        background: #f8d7da;
        color: #721c24;
    }

.no-volumes {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Описание */
.description-content {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

    .description-content br {
        margin-bottom: 10px;
        display: block;
        content: "";
    }

/* Компоненты */
.components-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.component-tag {
    background: #e9ecef;
    color: #495057;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

/* Кнопки действий */
.product-actions {
    display: flex;
    gap: 15px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

.btn-edit, .btn-delete, .btn-back {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-edit {
    background: #667eea;
    color: white;
}

    .btn-edit:hover {
        background: #5a67d8;
        transform: translateY(-2px);
    }

.btn-delete {
    background: #e53e3e;
    color: white;
}

    .btn-delete:hover {
        background: #c53030;
        transform: translateY(-2px);
    }

.btn-back {
    background: #718096;
    color: white;
    margin-left: auto;
}

    .btn-back:hover {
        background: #4a5568;
        transform: translateY(-2px);
    }

.delete-form {
    margin: 0;
}

/* Единые стили для форм (убрал дубликаты) */
.form-container {
    max-width: 1000px;
    margin: 60px auto 20px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 26px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.form-section {
    min-width: 80%;
    margin-bottom: 35px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.section-title {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.form-group {
    width: 100%;
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    box-sizing: border-box;
}

    .form-input:focus, .form-textarea:focus, .form-select:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Стили для размеров и объемов */
.sizes-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 15px 0;
}

.sizes-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.size-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
}

.size-header {
    width: 120px;
    min-width: 120px;
    padding-right: 20px;
    border-right: 2px solid #e0e0e0;
}

.size-label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.size-fields {
    display: flex;
    flex: 1;
    gap: 20px;
    align-items: center;
}

.size-field {
    flex: 1;
}

.size-field-label {
    display: block;
    margin-bottom: 6px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.size-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    background: white;
}

    .size-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

/* Чекбокс */
.checkbox-container, .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

    .checkbox-container input[type="checkbox"],
    .checkbox-group input[type="checkbox"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

/* Кнопка отправки */
.submit-button {
    padding: 14px 40px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 200px;
}

    .submit-button:hover {
        background: #1a252f;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.cancel-button {
    padding: 14px 40px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
}

    .cancel-button:hover {
        background: #545b62;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        color: white;
        text-decoration: none;
    }

/* Валидация */
.validation-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-default {
        position: relative;
        display: flex;
        align-items: center;
    }

    .header-logo {
        height: 30px;
    }

    .video-container {
        margin-top: -100px;
    }

    .top-cards {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: 2%;
        margin-right: 2%;
    }

    footer {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        width: 100%;
        margin-right: 0px;
    }

        footer section {
            margin-left: 10px;
        }

    /* Каталог */
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .catalog-name {
        font-size: 20px;
        height: 55px;
    }

    .catalog-price {
        font-size: 22px;
    }

    /* Детальная страница */
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-image-section {
        max-width: 500px;
        margin: 0 auto;
    }

    .volumes-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-back {
        margin-left: 0;
        margin-top: 10px;
    }

    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Формы */
    .form-container {
        margin: 50px 15px 20px 15px;
        padding: 20px;
    }

    .volumes-grid {
        grid-template-columns: 1fr;
    }

    .volume-fields {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .submit-button, .cancel-button {
        width: 100%;
    }

    .size-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .size-header {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
        padding-right: 0;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    .size-fields {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .size-field {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .catalog-container {
        padding: 20px 10px;
    }

    .catalog-name {
        font-size: 18px;
        height: 50px;
    }

    .catalog-details {
        font-size: 13px;
    }

    .catalog-btn {
        font-size: 16px;
        padding: 0 15px;
    }

    .volumes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 15px;
        margin: 40px 10px 20px 10px;
    }

    .form-title {
        font-size: 22px;
    }

    .form-section {
        padding: 15px;
    }

    .section-title {
        font-size: 18px;
    }

    .form-input, .form-textarea, .form-select {
        padding: 10px;
        font-size: 15px;
    }

    .submit-button {
        height: 40px;
        font-size: 15px;
    }

    .volumes-grid {
        grid-template-columns: 1fr;
    }

    .product-title {
        font-size: 24px;
    }

    .detail-section {
        padding: 20px;
    }

    .btn-edit, .btn-delete, .btn-back {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 450px) {
    .catalog-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: auto;
        margin-right: 5%;
        margin-left: 5%;
    }

    .footer-QR {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: auto;
    }

        .footer-QR div {
            display: flex;
            align-items: center;
            margin-right: auto;
            width: auto;
        }

    footer section {
        width: auto;
    }
}

@media (max-width: 329px) {
    .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: auto;
        margin-right: 5%;
        margin-left: 5%;
    }

    .footer-QR {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: auto;
    }

        .footer-QR div {
            display: flex;
            align-items: center;
            margin-right: auto;
            width: auto;
        }

    footer section {
        width: auto;
    }
}



.modern-filters {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 40px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.filters-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.filters-heading {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.counter-number {
    font-weight: 700;
    font-size: 18px;
    color: #667eea;
}

.counter-text {
    color: #718096;
}

.filters-content {
    padding: 24px;
    box-sizing: border-box;
}

.search-wrapper {
    position: relative;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.modern-search {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    color: #2d3748;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    max-width: 100%;
}

    .modern-search:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    }

    .modern-search::placeholder {
        color: #a0aec0;
    }

.clear-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    display: none;
}

    .clear-btn:hover {
        opacity: 1;
    }

.filters-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.filter-box {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Предотвращает выход за границы */
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.filter-icon {
    flex-shrink: 0;
}

.custom-select {
    position: relative;
    width: 100%;
}

.modern-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #2d3748;
    background: white;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
}

    .modern-select:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    }

.custom-select::after {
    content: "▼";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #a0aec0;
    font-size: 10px;
}

.actions-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.reset-button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    margin-top: auto;
}

    .reset-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    }

.active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    min-height: 40px;
    width: 100%;
    box-sizing: border-box;
}

.tag {
    background: #edf2f7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #4a5568;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    max-width: 100%;
    box-sizing: border-box;
}

    .tag:hover {
        background: #e2e8f0;
    }

.tag-remove {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

    .tag-remove:hover {
        color: #e53e3e;
    }

/* Стили для фильтра цены */
.price-filter-box {
    grid-column: span 2;
}

.price-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.price-inputs-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.price-input-container {
    position: relative;
    flex: 1;
    min-width: 0;
}

.price-input {
    width: 100%;
    padding: 10px 30px 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    background: white;
    transition: all 0.3s ease;
    height: 40px;
    box-sizing: border-box;
    max-width: 100%;
}

    .price-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    }

    .price-input::placeholder {
        color: #a0aec0;
    }

.price-currency {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #718096;
    pointer-events: none;
}

.price-separator {
    color: #cbd5e0;
    font-weight: 500;
    padding: 0 4px;
    font-size: 14px;
    flex-shrink: 0;
}

.price-sort-container {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.price-sort-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    height: 36px;
    box-sizing: border-box;
    max-width: 100%;
}

    .price-sort-btn:hover {
        border-color: #cbd5e0;
        background: #f7fafc;
        transform: translateY(-1px);
    }

    .price-sort-btn.active {
        border-color: #667eea;
        background: #f0f5ff;
        color: #667eea;
    }

.sort-text {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sort-direction {
    font-weight: bold;
    font-size: 14px;
    min-width: 14px;
    text-align: center;
    flex-shrink: 0;
}

/* Убираем стрелки у input[type="number"] */
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-input[type=number] {
    -moz-appearance: textfield;
}

/* Анимация счетчика */
.counter-number {
    transition: color 0.3s ease;
}

    .counter-number.changed {
        animation: pulse 0.5s ease;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .filters-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-filter-box {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .filters-row {
        grid-template-columns: 1fr;
    }

    .price-filter-box {
        grid-column: span 1;
    }

    .price-inputs-row {
        flex-direction: column;
        align-items: stretch;
    }

    .price-separator {
        text-align: center;
        padding: 4px 0;
    }

    .price-sort-container {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .filters-content {
        padding: 16px;
    }

    .filters-row {
        gap: 16px;
    }

    .modern-select {
        padding: 10px 36px 10px 12px;
    }

    .price-sort-btn {
        width: 100%;
        justify-content: center;
    }
}